package com.service.auth;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.model.auth.SResources;


public interface IResService {
	
	/**
	 * 获得右侧菜单栏目树
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<SResources> getLeftMenus() throws Exception;
	
	
	/**
	 * 
	 * @param id
	 * @param status
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<SResources> getResByParentId(Integer id,Integer status) throws Exception;
	
	/**
	 * 查询所有的栏目树
	 * @return
	 * @throws Exception
	 */
	@SuppressWarnings("unchecked")
	public List<SResources> getAllMenus() throws Exception;
	
	@SuppressWarnings("unchecked")
	public List<SResources> getResPageInfo(int parentId,int pageNO,int pageSize) throws Exception;
	

	public int getResConunt(int parentId)throws Exception;
	
	
	public SResources getResById(int id) throws Exception;
	
	public boolean delResById(int id) throws Exception;
	
	
	public boolean insertRes(SResources resources) throws Exception;
	
	
	public boolean updateRes(SResources resources) throws Exception;
}
